package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.ParticipacionListaCandidatos;
import pe.gob.onpe.ejb.id.ParticipacionListaCandidatosId;


/**
 * Local interface for ParticipacionListaCandidatosFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface ParticipacionListaCandidatosFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved
	 * ParticipacionListaCandidatos entity. All subsequent persist actions of
	 * this entity should use the #update() method.
	 * 
	 * @param entity
	 *            ParticipacionListaCandidatos entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ParticipacionListaCandidatos entity);

	/**
	 * Delete a persistent ParticipacionListaCandidatos entity.
	 * 
	 * @param entity
	 *            ParticipacionListaCandidatos entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ParticipacionListaCandidatos entity);

	/**
	 * Persist a previously saved ParticipacionListaCandidatos entity and return
	 * it or a copy of it to the sender. A copy of the
	 * ParticipacionListaCandidatos entity parameter is returned when the JPA
	 * persistence mechanism has not previously been tracking the updated
	 * entity.
	 * 
	 * @param entity
	 *            ParticipacionListaCandidatos entity to update
	 * @returns ParticipacionListaCandidatos the persisted
	 *          ParticipacionListaCandidatos entity instance, may not be the
	 *          same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ParticipacionListaCandidatos update(
			ParticipacionListaCandidatos entity);

	public ParticipacionListaCandidatos findById(
			ParticipacionListaCandidatosId id);

	/**
	 * Find all ParticipacionListaCandidatos entities with a specific property
	 * value.
	 * 
	 * @param propertyName
	 *            the name of the ParticipacionListaCandidatos property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParticipacionListaCandidatos> found by query
	 */
	public List<ParticipacionListaCandidatos> findByProperty(
			String propertyName, Object value, int... rowStartIdxAndCount);

	/**
	 * Find all ParticipacionListaCandidatos entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParticipacionListaCandidatos> all
	 *         ParticipacionListaCandidatos entities
	 */
	public List<ParticipacionListaCandidatos> findAll(
			int... rowStartIdxAndCount);
}